package com.jiantong.work.service;

import com.jiantong.work.model.ProductionReport;
import io.terminus.common.model.Response;

import java.util.Map;

/**
 * Created by niufei on 2017/3/14.
 *
 */
public interface ProductionReportWriteService {

    /**
     * 新建一条单据
     * @return 返回该单据的id
     */
    Response<Map<String,Object>> create(ProductionReport productionReport,Integer toStatus);

    /**
     * 更新一条单据
     * @param productionReport 生产记录对象
     * @return 返回true or false
     */
    Response<Map<String,Object>> update(ProductionReport productionReport,Integer toStatus);

    Boolean update(ProductionReport productionReport);


}
